package com.xiaoda.service;

import com.xiaoda.entity.Like;

import java.util.List;

public interface LikeService {

    List<Like> findAll();

    Like findByUid(String fromUid, String toUid);

    int addLike(Like like);

    int delLikeByUid(String fromUid, String toUid);

    Like isArticleLiked(String fromUid, int toAid);

    int addLikeArticle(String fromUid, int toAid);

    int delLikeArticle(String fromUid, int toAid);

    List<Like> findAllConcern(String fromUid, int start, int end);

    List<Like> findAllConcerned(String toUid, int start, int end);

    List<Like> findConcernArticle(String fromUid, int start, int end);

    List<Like> findAllFollowed(String account, int start, int end);

    int countLikeNum(String account);

    int deleteByUid(String uid);

    int deleteByAid(int aid);

}
